package com.example.springbootjspshiro.service;

import com.example.springbootjspshiro.pojo.Perms;
import com.example.springbootjspshiro.pojo.Role;
import com.example.springbootjspshiro.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    public void Register(User user);
    public User Login(String username);
    //（未包装）根据用户名查询所有角色
    public List<Role> findRolesByUserName(String username);
    //（包装好的）根据用户名查询所有角色
    public User findUseRolesByUsername(String username);
    //根据角色id 查询权限集合
    public List<Perms> findPermsByRoleId(Integer RoleId);
}
